<%@ page language="java"
	import="com.byxy.model.PayInfo,com.byxy.service.PayInfoServiceImpl,com.byxy.util.DateUtil"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>查看部门信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
</head>

<body>
	<%
		int id = Integer.parseInt(request.getParameter("id"));
		PayInfoServiceImpl paySer = new PayInfoServiceImpl();
		PayInfo pay = paySer.findById(id);
	%>
	<h1>时间格式：yyyy-MM-dd</h1>
	<h2>例如：2017-01-01</h2>
	<p>根据编号修改对应信息</p>

	<form action="../PayInfoUpdaetServlet" method="post"
		onSubmit="return chkads()" name="lf_addstu">
		<table class="table table-striped table-bordered table-condensed list">
			<tr>
				<td>编号</td>
				<td>名称</td>
				<td>时间</td>
				<td>费用</td>
				<td>备注</td>
				<td>党员基本信息编号</td>
			</tr>
			<tr class="demo">
				<td><%=pay.getId()%></td>
				<td><%=pay.getName()%></td>
				<td><%=DateUtil.utilDateTosqlDate(pay.getHours())%></td>
				<td><%=pay.getCost()%></td>
				<td><%=pay.getText()%></td>
				<td><%=pay.getBasicInfoId()%></td>

			</tr>

		</table>
		<td><a href="#" type=”button” name=”submit”
			onclick="javascript:history.back(-1);">返回上一页</a></td>
	</form>
</body>
</html>